package com.kotlin.myapplication.mvp.model

import com.kotlin.myapplication.base.BasePresenter
import com.kotlin.myapplication.base.BaseView
import com.kotlin.myapplication.bean.*

/**
 *@lil
 *@创建时间 2019/11/7 16:56
 *@描述
 */
class WeatherContract {

    interface view : BaseView<Weather> {

        fun showWeather(weather: com.kotlin.myapplication.bean.Weather<WeatherResult<realtime>>)

        fun error(error: String)
    }

    /**
     * 获取天气数据
     */
    interface Weather : BasePresenter {
        fun getWeather(date: String)
    }

}